package com.pl.itsense.gwt.clientzone.model;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;



public class MemberDTO implements IsSerializable{

	public MemberDTO() {
	}	
	
	
	public void setIntrests(String intrests) {
		this.intrests = intrests;
	}
	
	public String getIntrests() {
		return intrests;
	}
	
	
	private String company;
	
	
	public void setCompany(String company) {
		this.company = company;
	}
	public String getCompany() {
		return company;
	}
	
	public MemberDTO(Member member){
		id = member.getId();
		login = member.getLogin();
		password = member.getPassword();
		company = member.getCompany();
		firstName = member.getFirstName();
		lastName = member.getLastName();
		email= member.getEmail();
		newsletter= member.getNewsletter();
		phone = member.getPhone();
		comment = member.getComment();
		intrests = member.getIntrests();
		role = member.getRole();
		
	}
	
	
	
	private Long id;
	private int role;
	private String login;
	private String password;
	private String email;
	private String firstName;
	private String lastName;
	private String phone;
	private Boolean newsletter;
	private String comment;
	private String intrests;
	
	public void setComment(String comment) {
		this.comment = comment;
	}
	public String getComment() {
		return comment;
	}
	public void setNewsletter(Boolean newsletter) {
		this.newsletter = newsletter;
	}
	
	public Boolean getNewsletter() {
		return newsletter;
	}
	
	public int getRole() {
		return role;
	}
	
	public void setRole(int role) {
		this.role = role;
	}
	
 public Long getId() {
	return id;
}
 public void setId(Long id) {
	this.id = id;
}
	
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getFirstName() {
		return firstName;
	}
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public void setLastName(String lastName) {
		this.lastName = lastName;
	}


	public void setPhone(String phone) {
		this.phone = phone;
	}


	public String getPhone() {
		return phone;
	}
}
